Method, Apparatus, and Device for Enabling Task Management Interface

ABSTRACT

A method, an apparatus, and a device for enabling a task management interface, where the method includes receiving an instruction for enabling the task management interface, displaying the task management interface in response to the instruction for enabling the task management interface, where the task management interface includes a preview interface of at least one application program and an icon corresponding to at least one function of the application program, receiving an operation instruction for the icon, and switching the application program corresponding to the icon to a foreground, and executing the function in response to the operation instruction. Therefore, it is convenient for a user to quickly enable a function of an application program included in the task management interface, thereby improving user experience.

This application claims priority to the PCT international application No. PCT/CN2015/076466, filed with State Intellectual Property Office of the P.R.C on Apr. 13, 2015 and entitled “METHOD, APPARATUS, AND DEVICE FOR ENABLING TASK MANAGEMENT INTERFACE”, which is incorporated herein by reference in its entirety.

TECHNICAL FIELD

The present invention relates to the field of mobile communications, and in particular, to a method, an apparatus, and a device for enabling a task management interfaceinterface.

BACKGROUND

A task management interfaceinterface on an intelligent terminal is used to display an opened window or a running application program. When a user wants to enable a function of the opened window or running application program, the user needs to perform multiple steps. Especially, when the user wants to enable a specific function of an application program with many levels, operations are complex. For example, in an iOS system, a window of an application program “Baidu Map” is opened. When a user wants to enable the function “Frequent Destination” of “Baidu Map” on the task management interfaceinterface, the user first needs to double-tap a Home key to start the task management interfaceinterface, then selects “Baidu Map” on the task management interfaceinterface and switches “Baidu Map” to a foreground, and finally enables the function according to the following path: Map Application→Mine→More Tools→Location Sharing→Initiating a Party→Setting a Destination→Frequent Destination.

It can be learned from the foregoing that, in the prior art, when a user wants to enable a specific function of an opened window or a running application program displayed on a task management interfaceinterface, operations are complex, which affects user experience.

SUMMARY

Embodiments of the present invention provides a method, an apparatus, and a device for enabling a task management interfaceinterface, which can resolve a problem in the prior art that when a user wants to enable a function of an opened window or a running application program included in the task management interfaceinterface, operations are complex and user experience is affected.

According to a first aspect, a method for enabling a task management interfaceinterface is provided, where the method includes:

receiving an instruction for enabling the task management interfaceinterface;

in response to the instruction for enabling the task management interfaceinterface, displaying the task management interfaceinterface, where the task management interfaceinterface includes a preview interfaceinterface of at least one application program and an icon corresponding to at least one function of the application program;

receiving an operation instruction for the icon; and

in response to the operation instruction, switching the application program corresponding to the icon to a foreground, and executing the function.

With reference to the first aspect, in a first implementation manner of the first aspect, before the displaying the task management interfaceinterface, the method further includes:

selecting the at least one application program from a local opened window or running application program.

With reference to the first aspect or the first implementation manner of the first aspect, in a second implementation manner of the first aspect, before the receiving an instruction for enabling the task management interfaceinterface, the method further includes:

-   -   receiving an entrance parameter that is of at least one function         and that is sent, upon an exit of the local application program,         by the local application program; and

storing the entrance parameter of the at least one function in a storage area corresponding to the local application program.

With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, after the selecting the at least one application program from a local opened window or running application program, the method further includes:

sending a broadcast message to the at least one application program, where the broadcast message is used to trigger the at least one application program to return the entrance parameter of the at least one function; and

storing the entrance parameter of the at least one function in the storage area corresponding to the at least one application program.

With reference to the second implementation manner of the first aspect or the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the icon corresponding to the at least one function of the application program is drawn according to the entrance parameter of the at least one function.

With reference to the first aspect, in a fifth implementation manner of the first aspect, before the displaying the task management interfaceinterface, the method further includes:

selecting the at least one application program from a local application program with reference to a current user state.

With reference to any one of the first aspect, or the foregoing five implementation manners of the first aspect, in a sixth implementation manner of the first aspect, the function is a commonly used function of a user, and the commonly used function is set according to a setting instruction of the user; and/or

the commonly used function is set according to a frequency of using functions of the at least one application program by the user in a preset time period.

With reference to the second implementation manner of the first aspect or the third implementation manner of the first aspect, in a seventh implementation manner of the first aspect, the executing the function includes:

obtaining the entrance parameter of the at least one function corresponding to the icon from the storage area;

determining a functional interfaceinterface of the function according to the entrance parameter of the at least one function corresponding to the icon; and

displaying the functional interfaceinterface on the foreground.

According to a second aspect, an apparatus for enabling a task management interfaceinterface is provided, where the apparatus includes: a receiving unit, a display unit, and a switch unit, where

the receiving unit is configured to receive an instruction for enabling the task management interfaceinterface;

the display unit is configured to: in response to the instruction for enabling the task management interfaceinterface received by the receiving unit, display the task management interfaceinterface, where the task management interfaceinterface includes a preview interfaceinterface of at least one application program and an icon corresponding to at least one function of the application program;

the receiving unit is further configured to receive an operation instruction for the icon, and

the switch unit is configured to: in response to the operation instruction received by the receiving unit, switch the application program corresponding to the icon to a foreground, and execute the function.

With reference to the second aspect, in a first implementation manner of the second aspect, the apparatus further includes: a first selection unit, configured to select the at least one application program from a local opened window or running application program.

With reference to the second aspect or the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the apparatus further includes: a storage unit;

the receiving unit is configured to receive an entrance parameter that is of the at least one function and that is sent, upon an exit of the local application program, by the local application program; and

the storage unit is configured to store the entrance parameter of the at least one function received by the receiving unit in a storage area corresponding to the local application program.

With reference to the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the apparatus further includes: a sending unit, configured to send a broadcast message to the at least one application program, where the broadcast message is used to trigger the at least one application program to return the entrance parameter of the at least one function; and

store the entrance parameter of the at least one function in the storage area corresponding to the at least one application program.

With reference to the second implementation manner of the second aspect or the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the icon corresponding to the at least one function of the application program is drawn according to the entrance parameter of the at least one function.

With reference to the second aspect, in a fifth implementation manner of the second aspect, the apparatus further includes: a second selection unit, configured to select the at least one application program from a local application program with reference to a current user state.

With reference to any one of the second aspect, or the foregoing five implementation manners of the second aspect, in a sixth implementation manner of the second aspect, the function is a commonly used function of a user, and the commonly used function is set according to a setting instruction of the user; and/or

the commonly used function is set according to a frequency of enabling functions of the at least one application program by the user in a preset time period.

With reference to the second implementation manner of the second aspect, or the third implementation manner of the second aspect, in a seventh implementation manner of the second aspect, the switch unit is specifically configured to:

obtain the entrance parameter of the at least one function corresponding to the icon from the storage area;

determine a functional interfaceinterface of the function according to the entrance parameter of the at least one function corresponding to the icon; and

display the functional interfaceinterface on the foreground.

According to a third aspect, a device for enabling a task management interfaceinterface is provided, where the device includes:

a processor, a memory, a communications interfaceinterface, and a bus, where the processor, the memory, and the communications interfaceinterface communicate by using the bus;

the communications interfaceinterface is configured to communicate with a switch or a control server;

the memory is configured to store a program; and

when the device runs, the processor is configured to execute the program stored in the memory, so as to execute the method for enabling a task management interfaceinterface according to the foregoing first aspect.

According to a fourth aspect, a method for displaying a task management interfaceinterface is provided, where the method includes:

receiving an operation of double-tapping a Home key;

in response to the operation of double-tapping a Home key, selecting at least one application program from installed application programs according to a habit of using an application program by a user; and

displaying the task management interfaceinterface, where the task management interfaceinterface includes information about the selected at least one application program.

With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the information about the at least one application program comprises an icon corresponding to the at least one application program and/or a preview interfaceinterface of the at least one application program.

With reference to the fourth aspect or the first implementation manner of the fourth aspect, in a second implementation manner of the fourth aspect, the selecting at least one application program from installed application programs according to a habit of using an application program by a user is specifically:

selecting the at least one application program from the installed application programs according to use of an application program by the user in daily life.

With reference to the second implementation manner of the fourth aspect, in a third implementation manner of the fourth aspect, the selecting the at least one application program from the installed application programs according to use of an application program by the user in daily life is specifically:

selecting the at least one application program from the installed application programs according to a frequency of using an application program by the user in different time periods.

With reference to the second implementation manner of the fourth aspect, in a fourth implementation manner of the fourth aspect, the selecting the at least one application program from the installed application programs according to use of an application program by the user in daily life is specifically:

selecting the at least one application program from the installed application programs according to a frequency of using an application program by the user when human body characteristic parameters of the user are different thresholds.

With reference to the second implementation manner of the fourth aspect, in a fifth implementation manner of the fourth aspect, the selecting the at least one application program from the installed application programs according to use of an application program by the user in daily life is specifically:

selecting the at least one application program from the installed application programs according to a frequency of using an application program by the user in different locations.

With reference to the fourth aspect, in a sixth implementation manner of the fourth aspect, after the displaying the task management interfaceinterface, the method further includes:

receiving an operation instruction for the information about the application program; and

in response to the operation instruction, switching the application program to a foreground, and running the application program.

According to a fifth aspect, a method for operating an application program is provided, and the method includes:

receiving a first operation instruction;

in response to the first operation instruction, displaying a user interface, wherein the user interface comprises an icon of at least one application program and an entrance of at least one commonly used function of the application program, the commonly used function is a function commonly used when the user uses the application program, and the entrance of the commonly used function is used to receive an operation instruction, so as to execute the commonly used function of the application program;

receiving a second operation instruction for the entrance of the commonly used function; and

in response to the second operation instruction, switching the application program to a foreground, and executing the commonly used function corresponding to the entrance of the commonly used function.

With reference to the fifth aspect, in a first implementation manner of the fifth aspect, the displaying a user interface is specifically:

display a system user interface.

According to a sixth aspect, a method for running an application program is provided, where the method includes: receiving a first operation instruction;

in response to the first operation instruction, displaying a user interface, wherein the user interface comprises an icon of at least one application program, and the application program is selected from installed application programs according to a habit of using an application program by a user;

receiving a second operation instruction for the icon of the application program; and

in response to the second operation instruction, switching the application program to a foreground, and running the application program.

With reference to the sixth aspect, in a first implementation manner of the sixth aspect, the application program is specifically selected from the installed application programs according to use of an application program by the user in daily life.

With reference to the sixth aspect, or the first implementation manner of the sixth aspect, in a second implementation manner of the sixth aspect, the application program is specifically selected from the installed application programs according to a frequency of using an application program by the user in different time periods.

With reference to the sixth aspect, or the first implementation manner of the sixth aspect, in a third implementation manner of the sixth aspect, the application program is specifically selected from the installed application programs according to a frequency of using an application program by the user when human body characteristic parameters of the user are different thresholds.

With reference to the sixth aspect, or the first implementation manner of the sixth aspect, in a fourth implementation manner of the sixth aspect, the application program is specifically selected from the installed application programs according to a frequency of using an application program by the user in different locations.

According to a seventh aspect, an apparatus for displaying a task management interfaceinterface is provided, where the apparatus includes: a receiving unit, a selection unit, and a display unit, where

the receiving unit is configured to receive an operation of double-tapping a Home key;

the selection unit is configured to: in response to the operation of double-tapping a Home key received by the receiving unit, select at least one application program from installed application programs according to a habit of using an application program by a user; and

the display unit is configured to display the task management interfaceinterface, where the task management interfaceinterface includes information about the selected at least one application program.

With reference to the seventh aspect, in a first implementation manner of the seventh aspect, the information about the at least one application program comprises an icon corresponding to the at least one application program and/or a preview interfaceinterface of the at least one application program.

With reference to the seventh aspect, or the first implementation manner of the seventh aspect, in a second implementation manner of the seventh aspect, the selection unit is specifically configured to:

select the at least one application program from the installed application programs according to use of an application program by the user in daily life.

With reference to the second implementation manner of the seventh aspect, in a third implementation manner of the seventh aspect, the selecting the at least one application program from the installed application programs according to use of an application program by the user in daily life is specifically:

selecting the at least one application program from the installed application programs according to a frequency of using an application program by the user in different time periods.

With reference to the second implementation manner of the seventh aspect, in a fourth implementation manner of the seventh aspect, the selecting the at least one application program from the installed application programs according to use of an application program by the user in daily life is specifically:

selecting the at least one application program from the installed application programs according to a frequency of using an application program by the user when human body characteristic parameters of the user are different thresholds.

With reference to the second implementation manner of the seventh aspect, in a fifth implementation manner of the seventh aspect, the selecting the at least one application program from the installed application programs according to use of an application program by the user in daily life is specifically:

selecting the at least one application program from the installed application programs according to a frequency of using an application program by the user in different locations.

With reference to the seventh aspect, in a sixth implementation manner of the seventh aspect, the apparatus further includes: a running unit;

the receiving unit is further configured to receive an operation instruction for the information about the application program; and

the running unit is configured to: in response to the operation instruction received by the receiving unit, switch the application program to a foreground, and run the application program.

According to an eighth aspect, an apparatus for operating an application program is provided, where the apparatus includes: a receiving unit, a display unit, and a switch unit, where

the receiving unit is configured to receive a first operation instruction;

the display unit is configured to: in response to the first operation instruction received by the receiving unit, display a user interface, wherein the user interface comprises an icon of at least one application program and an entrance of at least one commonly used function of the application program, the commonly used function is a function commonly used when a user uses the application program, and the entrance of the commonly used function is used to receive an operation instruction, so as to execute the commonly used function of the application program;

the receiving unit is further configured to receive a second operation instruction for the entrance of the commonly used function; and

the switch unit is configured to: in response to the second operation instruction received by the receiving unit, switch the application program to a foreground, and execute the commonly used function corresponding to the entrance of the commonly used function.

With reference to the eighth aspect, in a first implementation manner of the eighth aspect, the display unit is specifically configured to:

display a system user interface.

According to a ninth aspect, an apparatus for running an application program is provided, where the apparatus includes: a receiving unit, a display unit, and a switch unit, where

the receiving unit is configured to receive a first operation instruction;

the display unit is configured to: in response to the first operation instruction received by the receiving unit, display a user interface, wherein the user interface comprises an icon of at least one application program, and the application program is selected from installed application programs according to a habit of using an application program by a user;

the receiving unit is further configured to receive a second operation instruction for the icon of the application program; and

the switch unit is configured to: in response to the second operation instruction received by the receiving unit, switch the application program to a foreground, and run the application program.

With reference to the ninth aspect, in a first implementation manner of the ninth aspect, the application program is specifically selected from the installed application programs according to use of an application program by the user in daily life.

With reference to the ninth aspect, or the first implementation manner of the ninth aspect, in a second implementation manner of the ninth aspect, the application program is specifically selected from the installed application programs according to a frequency of using an application program by the user in different time periods.

With reference to the ninth aspect, or the first implementation manner of the ninth aspect, in a third implementation manner of the ninth aspect, the application program is specifically selected from the installed application programs according to a frequency of using an application program by the user when human body characteristic parameters of the user are different thresholds.

With reference to the ninth aspect, or the first implementation manner of the ninth aspect, in a fourth implementation manner of the ninth aspect, the application program is specifically selected from the installed application programs according to a frequency of using an application program by the user in different locations.

According to a tenth aspect, an apparatus for displaying a task management interfaceinterface is provided, where the apparatus includes:

a processor, a memory, a communications interfaceinterface, and a bus, where the processor, the memory, and the communications interfaceinterface communicate by using the bus;

the communications interfaceinterface is configured to communicate with a switch or a control server;

the memory is configured to store a program; and

when the apparatus runs, the processor is configured to execute the program stored in the memory, so as to execute the method for displaying a task management interfaceinterface according to the foregoing fourth aspect.

According to an eleventh aspect, an apparatus for operating an application program is provided, where the apparatus includes:

a processor, a memory, a communications interface, and a bus, where the processor, the memory, and the communications interface communicate by using the bus;

the communications interface is configured to communicate with a switch or a control server;

the memory is configured to store a program; and

when the apparatus runs, the processor is configured to execute the program stored in the memory, so as to execute the method for operating an application program according to the foregoing fifth aspect.

According to a twelfth aspect, an apparatus for running an application program is provided, where the apparatus includes:

a processor, a memory, a communications interface, and a bus, where the processor, the memory, and the communications interface communicate by using the bus;

the communications interface is configured to communicate with a switch or a control server;

the memory is configured to store a program; and

when the apparatus runs, the processor is configured to execute the program stored in the memory, so as to execute the method for running an application program according to the foregoing sixth aspect.

According to the method, apparatus, and device for enabling a task management interface provided in the embodiments of the present invention, an instruction for enabling the task management interface is received; in response to the instruction for enabling the task management interface, the task management interface is displayed, where the task management interface includes a preview interface of at least one application program and an icon corresponding to at least one function of the application program; an operation instruction for the icon is received; and in response to the operation instruction, the application program corresponding to the icon is switched to a foreground, and the function is executed. Therefore, it is convenient for a user to quickly enable a function of an application program included in the task management interface, thereby improving user experience.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a flowchart of a method for enabling a task management interface according to Method Embodiment 1 of the present invention;

FIG. 2 is a schematic diagram of a task management interface according to the present invention;

FIG. 3 is a flowchart of a method for enabling a task management interface according to Method Embodiment 2 of the present invention;

FIG. 4 is a flowchart of a method for enabling a task management interface according to Method Embodiment 3 of the present invention;

FIG. 5 is a flowchart of a method for enabling a task management interface according to Method Embodiment 4 of the present invention;

FIG. 6 is a flowchart of a method for enabling a task management interface according to Method Embodiment 5 of the present invention;

FIG. 7 is a schematic diagram of an apparatus for enabling a task management interface according to an apparatus embodiment of the present invention; and

FIG. 8 is a schematic diagram of a device for enabling a task management interface according to a device embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

The technical solutions of the present invention are further described in detail with reference to accompanying drawings and embodiments as follows.

To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

To provide thorough understanding of the present invention, the following further describes the embodiments of the present invention in detail with reference to the accompanying drawings. The foregoing embodiments are not intended to limit the protection scope of the present invention.

Embodiments of the present invention provide a method, an apparatus and a device for enabling a task management interface. The task management interface includes a preview interface of at least one application program and an icon corresponding to at least one function of the application program. When an operation instruction for the icon is received, the application program to which the icon belongs may be directly switched to a foreground and the function corresponding to the icon is executed. Therefore, it is convenient for a user to quickly enable a function of an application program included in the task management interface, thereby improving user experience.

Method Embodiment

FIG. 1 is a flowchart of a method for enabling a task management interface according to Method Embodiment 1 of the present invention. The method may be executed by an operating system of a terminal device, where the terminal device includes but is not limited to a mobile phone, a mobile computer, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a media player, a smart television, a smart watch, smart glasses, a smart band, and the like. The operating system of the terminal device may be an iOS system, an Android system, or another system that can provide a task view function for a user. As shown in FIG. 1, the method specifically includes the following steps.

S110. Receive an instruction for enabling the task management interface.

Herein, the task management interface implements the task view function, and the task management interface generally displays an opened window or a running application program. The instruction for enabling the task management interface may be triggered by double-tapping a Home key on the terminal device by a user, or may be triggered in a manner such as tapping and holding a menu key on the terminal device by the user.

Optionally, before step S110 in this embodiment of the present invention, the method may further include the following steps:

receiving an entrance parameter that is of at least one function and that is sent, upon an exit of the local application program, by the local application program; and

storing the entrance parameter of the at least one function in a storage area corresponding to the local application program.

The function herein may be a shortcut function (also referred to as a commonly used function) that is of an application program and that is commonly used by the user, or may be another function provided by the application program. In this specification, the foregoing function is a commonly used function of the user. However, it should be noted that the foregoing commonly used function is provided by the application program, but not provided by the task management interface itself. The commonly used function may be set according to a setting instruction of the user, or may be set according to a frequency of using functions of the at least one application program by the user in a preset time period, or may be set by using the foregoing two methods, which is not limited in the present invention.

For example, if a local application program A provides a setting option of a commonly used function, a user may set the commonly used function of the application program A by using the foregoing setting option, for example, the user may preset “Frequented Destination” as a commonly used function of “Baidu Map”. In another implementation manner, an application program A may pre-collect a habit of using the application program A by a user, for example, a frequency of enabling, in a preset time period, functions provided by the application program A. In an example in which the application program A is “Baidu Map”, if frequencies of enabling, by the user in a preset time period, “Frequent Destination”, “Taxi”, and “Distance Measurement” provided by “Baidu Map” are respectively 56 times, 12 times, and 42 times, “Frequent Destination” may be set as a commonly used function.

An entrance parameter of the commonly used function may include: a name of the commonly used function and an index entry for indexing the commonly used function in the application program. The index entry is corresponding to a specific code segment, and when the specific code segment is executed, a functional interface of the commonly used function corresponding to the index entry is loaded. In a specific implementation manner, it is assumed that functions of an application program are obtained by division according to levels, where each function is corresponding to a unique flag bit, for example, a flag bit of a first function is “1”, a flag bit of a second function is “2”, . . . , and so on. Each function may include multiple sub-functions, and each sub-function is also corresponding to a unique flag bit, for example, a flag bit corresponding to a fifth sub-function of the first function is “1-5”. In this case, the index entry may be a unique flag bit corresponding to the foregoing function or sub-function.

Herein, a specific application scenario is merely used as an example for describing the index entry, which, however, is not limited in the present invention, and a person skilled in the art may set the foregoing index entry to another parameter.

For example, when the user taps a disabling button of “Baidu Application”, that is, when the application program exits, entrance parameters of the commonly used function “Frequent Destination” (assuming that “Frequent Destination” is corresponding to a fifth sub-function of a sixth function of “Baidu Application”) of the application program, namely, “Frequent Destination” and “6-5” are sent to an operating system, so that the operating system stores the foregoing received parameters in a storage area corresponding to “Baidu Map”.

S120. In response to the instruction for enabling the task management interface, display the task management interface, where the task management interface includes a preview interface of at least one application program and an icon corresponding to at least one function of the application program.

Herein, the preview interface of the application program is scaled interface of an application program window, and the preview interface can reflect a change of the application program in real time. For example, after an application program “WeChat” exits, if a friend sends a message, a “WeChat” preview interface displays the foregoing message in real time. In addition, the icon may be a text button, a graphical button, or the like, or may be another control drawn by the operating system; and the icon may be set in a hover state, a transparent state, or the like, and a display effect of the icon for an entrance of the commonly used function is not limited in the present invention.

Optionally, before the displaying the task management interface, the method further includes:

selecting the at least one application program from a local opened window or running application program.

The local application program refers to an application program installed by the user on the terminal device. In another implementation manner of the present invention, the at least one application program may be selected from a local application program recorded in a browsing history of the user; and in still another implementation manner of the present invention, the at least one application program may be selected with reference to the foregoing two implementation manners, which is not limited in the present invention.

It may be understood that the local application program recorded in the browsing history of the user may be a running application program or an application program that is not running, and accordingly, the at least one application program selected according to the another implementation manner may be an opened window, a running application program, or an application program that is not running.

In the still another implementation manner of the present invention, the at least one application program may be selected from the local application program with reference to a current user state, where the current user state may be a current time of the user, or a current geographic location of the user, or a current human body characteristic parameter of the user such as a heart rate, a blood pressure, and an emotion.

Specifically, the operating system of the terminal device may pre-collect a habit of using the local application program by the user, that is, pre-collect a use frequency of using the local application program by the user in any one or more of the following cases: in a first case, a use frequency of using each application program in the local application program by the user in multiple preset time periods is collected; in a second case, a use frequency of using each application program in the local application program by the user when human body characteristic parameters are multiple thresholds is collected; in a third case, a use frequency of using each application program of the local application program by the user in multiple preset locations is collected.

For example, the use frequencies of using the local application program by the user in the foregoing three cases are pre-collected. In addition, it is assumed that Table 1 lists use frequencies that are collected in the first case and that are of using each application program in the local application program by the user in multiple time periods.

TABLE 1 Preset Time Application Application Application Period Program A Program B Program C 2:00-5:00 20 times  8 times 12 times 7:00-8:00  4 times 30 times 11 times

“2:00-5:00” and “7:00-8:00” are two preset time periods; “20 times”, “8 times”, and “12 times” respectively indicate use frequencies of using the application program A, the application program B, and the application program C by the user during “2:00-5:00”; and “4 times”, “30 times”, and “11 times” respectively indicate use frequencies of using the application program A, the application program B, and the application program C by the user during “7:00-8:00”.

Table 2 lists use frequencies that are collected in the second case and that are of using each application program in the local application program by the user when the human body characteristic parameters are multiple thresholds.

TABLE 2 Preset Human Body Characteristic Application Application Application parameter Program A Program B Program C Threshold A  3 times 23 times 10 times Threshold B 22 times 42 times 50 times

When the preset human body characteristic parameter is the threshold A, it indicates that the user is undergoing a movement, and when the preset human body characteristic parameter is the threshold B, it indicates that the user is in still; “3 times”, “23 times”, and “10 times” respectively indicate use frequencies of using the application program A, the application program B, and the application program C by the user in a movement; and “22 times”, “42 times”, and “50 times” respectively indicate use frequencies of using the application program A, the application program B, and the application program C by the user in still.

Table 3 lists use frequencies that are collected in the third case and that are of using each application program in the local application program by the user in multiple preset locations.

TABLE 3 Application Application Application Preset Location Program A Program B Program C Location 1 22 times 32 times 76 times Location 2 42 times 12 times 56 times

The location 1 and the location 2 are any location that has unique longitude and latitude values; “22 times”, “32 times”, and “76 times” respectively indicate use frequencies of using the application program A, the application program B, and the application program C by the user at the location 1; and “42 times”, “12 times”, and “56 times” respectively indicate use frequencies of using the application program A, the application program B, and the application program C by the user at the location 2.

For the foregoing pre-collected habit of using the local application program by the user, before the management interface is displayed, one or more types of information among a current time of the user, a current geographic location of the user, or a human body characteristic parameter of the user are first obtained. In an example in which only one type of the information (for example, the current time of the user) is obtained, the current time is compared with multiple preset time periods, and if the current time is within a preset time period, a most frequently used application program among all application programs used in the preset time period is selected as the at least one application program. For example, it is assumed that the obtained current time point is 7:30, and the time point is within an interval of the second time period (7:00-8:00) listed in Table 2. The use frequencies of using the application program A, the application program B, and the application program C in the second time period are respectively “4 times”, “30 times”, and “11 times”, that is, the use frequency of the application program B is the highest; therefore, the application program B is selected as the at least one application program.

The foregoing provides a description by using the example in which only one type of the information is obtained, and one application program is selected from the local application program with reference to the information. When multiple types of the information is obtained, a person skilled in the art can select the at least one application program from the local application program according to the method of the present invention, and displays the at least one application program on the task management interface, which is not limited in the present invention.

After the at least one application program is selected, if the storage area corresponding to the at least one application program does not store the entrance parameter of the at least one commonly used function of the application program, a broadcast message may be sent to the application program, where the broadcast information is used to trigger the at least one application program to return the entrance parameter of the at least one commonly used function; and the entrance parameter of the at least one function is stored in the storage area corresponding to the at least one application program.

For example, if the application program selected in the foregoing procedure is “Baidu Application”, the stored entrance parameters “Frequent Destination” and “6-5” of the at least one commonly used function are obtained from the storage area corresponding to “Baidu Application”. Herein, if multiple application programs are selected, a pre-stored entrance parameter of at least one commonly used function are separately obtained from storage areas corresponding to the multiple application programs. For an application program having multiple commonly used functions, entrance parameters of the multiple commonly used functions are obtained from a storage area corresponding to the application program.

In the foregoing example, if the storage area corresponding to the selected at least one application program does not store the entrance parameter of the at least one commonly used function of the application program, after the at least one application program is selected, for example, after one application program “Baidu Application” is selected, a broadcast message may be sent to “Baidu Application”. After receiving the foregoing broadcast message, “Baidu Application” returns entrance parameters “Frequent Destination” and “6-5” of a commonly used function of “Baidu Application” to the operating system, and the operating system stores the foregoing received entrance parameters in the storage area corresponding to “Baidu Application”. Herein, if multiple application programs are selected, a broadcast message is sent to the multiple application programs; and when any application program in the multiple application programs has more than one commonly used function, entrance parameters of the more than one commonly used function are returned to the operating system, and the operating system stores the entrance parameters of the more than one commonly used function in the storage area corresponding to “Baidu Application”.

After the entrance parameter of the at least one commonly used function of the foregoing application program is obtained from the storage area, an icon corresponding to the at least one commonly used function may be drawn according to the entrance parameter of the at least one commonly used function.

Referring to a schematic diagram of a task management interface provided in the present invention shown FIG. 2, the task management interface includes preview interfaces of four application programs: preview interfaces of a first application program, a second application program, a third application program, and a fourth application program, and further includes buttons corresponding to two shortcut functions that are commonly used by a user and of the second application program, and a button corresponding to a shortcut function that is commonly used by the user and of another application program.

It is noted herein that the foregoing embodiment provides only one icon display position and display manner, and a person skilled in the art may also display the icon in another position of the task management interface and may display the icon in another manner, provided that the user can clearly see and can easily distinguish the application program corresponding to the commonly used function.

In FIG. 2, if the first application program is “Baidu Application”, and “Baidu Application” has one function “Frequent Destination” commonly used by the user, that an icon corresponding to the commonly used function is drawn according to the entrance parameter of the commonly used function is specifically: displaying a name of the commonly used function “Frequent Destination” in a button of the first application program, and establishing a correspondence between the button of the first application program and the index entry “6-5”. After the correspondence between the button of the first application program and the index entry “6-5” is established, when the user taps the foregoing button, the task management interface is switched to a functional interface of “Frequent Destination”.

S130. Receive an operation instruction for the icon.

Herein, the operation instruction may be but is not limited to tap operation triggering of the user on a touchinterface of the terminal device.

S140. In response to the operation instruction, switch the application program corresponding to the icon to a foreground, and execute the function.

The executing the function in S140 includes:

obtaining the entrance parameter of the at least one function corresponding to the icon from the storage area;

determining a functional interface of the function according to the entrance parameter of the at least one function corresponding to the icon; and

displaying the functional interface on the foreground.

It should be noted that the switching the application program corresponding to the icon to a foreground is: after responding to the operation instruction, the operating system disables the task management interface, and enables the application program corresponding to the icon (for example, when receiving a tap of a user on an icon of a commonly used function of “Baidu Map” on the task management interface, the operating system disables the task management interface, and enables “Baidu Map”). Because the commonly used function is executed the foregoing step, and the executing the commonly used function refers to enabling the functional interface of the commonly used function, after S140 ends, the terminal device displays the functional interface of the commonly used function (in the foregoing example, the terminal device displays the functional interface of the commonly used function “Frequent Destination”).

In FIG. 2, when the user taps the button of the first application program, the system first obtains “6-5” corresponding to the button from the storage area corresponding to “Baidu Application”, searches for a code segment corresponding to the index entry according to “6-5” corresponding to the button, and runs the foregoing code segment, so that the functional interface of “Frequent Destination” may be determined, that is, after the commonly used function is executed, the task management interface may be switched to the functional interface of “Frequent Destination”, and the currently running application program is “Baidu Application”.

Certainly, in practical application, after the operation instruction is responded to, the application program corresponding to the icon may be not switched to the foreground, and the commonly used function is directly executed on a background, that is, the system still stays in the task management interface, and executes the commonly used function on the background without a need of enabling the functional interface of the commonly used function; and after completing the execution of the commonly used function, the system may display prompt information to the user, where the prompt information may indicate that the commonly used function is successfully executed (for example, popping up a dialog box for prompting), or the system may directly execute the commonly used function without a need of prompting the user.

Optionally, the method further includes:

When an operation instruction of the preview interface is received, switching the application program corresponding to the preview interface to a foreground for display.

In FIG. 2, when the user taps the first application program, the task management interface is switched to a preview interface of “Baidu Application”.

According to the method for enabling a task management interface provided in Embodiment 1 of the present invention, an instruction for enabling the task management interface is received; in response to the instruction for enabling the task management interface, the task management interface is displayed, where the task management interface includes a preview interface of at least one application program and an icon corresponding to at least one function of the application program; an operation instruction for the icon is received; in response to the operation instruction, the application program corresponding to the icon is switched to a foreground; and the function is executed. Therefore, it is convenient for a user to quickly enable a function of an application program included in the task management interface, thereby improving user experience.

FIG. 3 is a flowchart of a method for enabling a task management interface according to Method Embodiment 2 of the present invention, and the method may be executed by an operating system of a terminal device. As shown in FIG. 3, the method specifically includes the following steps.

S310. Receive an entrance parameter that is of at least one function and that is sent, upon an exit of a local application program, by the local application program.

S320. Store the entrance parameter of the at least one function in a storage area corresponding to the local application program.

The function herein may be a shortcut function (also referred to as a commonly used function) that is of an application program and that is commonly used by the user, or may be another function provided by the application program. In this specification, the foregoing function is a commonly used function of the user. However, it should be noted that the foregoing commonly used function is provided by the application program, but not provided by the task management interface itself. The commonly used function may be set according to a setting instruction of the user, or may be set according to a frequency of using functions of the at least one application program by the user in a preset time period, or may be set by using the foregoing two methods, which is not limited in the present invention.

For example, if a local application program A provides a setting option of a commonly used function, a user may set the commonly used function of the application program A by using the foregoing setting option, for example, the user may preset “Frequented Destination” as a commonly used function of “Baidu Map”. In another implementation manner, an application program A may pre-collect a habit of using the application program A by a user, for example, a frequency of enabling, in a preset time period, functions provided by the application program A. In an example in which the application program A is “Baidu Map”, if frequencies of enabling, by the user in a preset time period, “Frequent Destination”, “Taxi”, and “Distance Measurement” provided by “Baidu Map” are respectively 56 times, 12 times, and 42 times, “Frequent Destination” may be set as a commonly used function.

An entrance parameter of the commonly used function may include: a name of the commonly used function and an index entry for indexing the commonly used function in the application program. The index entry is corresponding to a specific code segment, and when the specific code segment is executed, a functional interface of the commonly used function corresponding to the index entry is loaded. In a specific implementation manner, it is assumed that functions of an application program are obtained by division according to levels, where each function is corresponding to a unique flag bit, for example, a flag bit of a first function is “1”, a flag bit of a second function is “2”, . . . , and so on. Each function may include multiple sub-functions, and each sub-function is also corresponding to a unique flag bit, for example, a flag bit corresponding to a fifth sub-function of the first function is “1-5”. In this case, the index entry may be a unique flag bit corresponding to the foregoing function or sub-function.

Herein, a specific application scenario is merely used as an example for describing the index entry, which, however, is not limited in the present invention, and a person skilled in the art may set the foregoing index entry to another parameter.

For example, when the user taps a disabling button of “Baidu Application”, that is, when the application program exits, entrance parameters of the commonly used function “Frequent Destination” (assuming that “Frequent Destination” is corresponding to a fifth sub-function of a sixth function of “Baidu Application”) of the application program, namely, “Frequent Destination” and “6-5” are sent to an operating system, so that the operating system stores the foregoing received parameters in a storage area corresponding to “Baidu Application”.

S330. Receive an instruction for enabling the task management interface.

Herein, the task management interface implements the task view function, and the task management interface generally displays an opened window or a running application program. The instruction for enabling the task management interface may be triggered by double-tapping a Home key on the terminal device by a user, or may be triggered in a manner such as tapping a menu key on the terminal device by the user.

S340. In response to the instruction for enabling the task management interface, select the at least one application program from a local opened window or running application program.

The local application program refers to an application program installed by the user on the terminal device. In another implementation manner of the present invention, the at least one application program may be selected from a local application program recorded in a browsing history of the user; and in still another implementation manner of the present invention, the at least one application program may be selected with reference to the foregoing two implementation manners, which is not limited in the present invention.

It may be understood that the local application program recorded in the browsing history of the user may be a running application program or an application program that is not running, and accordingly, the at least one application program selected according to the another implementation manner may be an opened window, a running application program, or an application program that is not running.

S350. Obtain the entrance parameter of the at least one function from the storage area corresponding to the at least one application program.

In the foregoing example, if the application program selected in the foregoing procedure is “Baidu Application”, the stored entrance parameters “Frequent Destination” and “6-5” of the at least one commonly used function are obtained from the storage area corresponding to “Baidu Application”. Herein, if multiple application programs are selected, a pre-stored entrance parameter of at least one commonly used function are separately obtained from storage areas corresponding to the multiple application programs. For an application program having multiple commonly used functions, entrance parameters of the multiple commonly used functions are obtained from a storage area corresponding to the application program.

S360. Display the task management interface, where the task management interface includes a preview interface of the at least one application program, and draw an icon corresponding to the at least one function of the application program according to the entrance parameter of the at least one function.

Herein, the preview interface of the application program is scaled interface of an application program window, and the preview interface can reflect a change of the application program in real time. For example, after an application program “WeChat” exits, if a friend sends a message, a “WeChat” preview interface displays the foregoing message in real time. In addition, the icon may be a text button, a graphical button, or the like, or may be another control drawn by the operating system; and the icon may be set in a hover state, a transparent state, or the like, and a display effect of the icon for an entrance of the commonly used function is not limited in the present invention.

Referring to a schematic diagram of a task management interface provided in the present invention shown FIG. 2, the task management interface includes preview interfaces of four application programs: preview interfaces of a first application program, a second application program, a third application program, and a fourth application program, and further includes buttons corresponding to two shortcut functions that are commonly used by a user and of the second application program, and a button corresponding to a shortcut function that is commonly used by the user and of another application program.

If the first application program is “Baidu Application”, and “Baidu Application” has one function “Frequent Destination” commonly used by the user, that an icon corresponding to the commonly used function is drawn according to the entrance parameter of the commonly used function is specifically: displaying a name of the commonly used function “Frequent Destination” in a button of the first application program, and establishing a correspondence between the button of the first application program and the index entry “6-5”. After the correspondence between the button of the first application program and the index entry “6-5” is established, when the user taps the foregoing button, the task management interface is switched to a functional interface of “Frequent Destination”.

S370. Receive an operation instruction for the icon.

Herein, the operation instruction may be but is not limited to tap operation triggering of the user on a touchinterface of the terminal device.

S380. In response to the operation instruction, switch the application program corresponding to the icon to a foreground, and execute the function.

It should be noted that the switching the application program corresponding to the icon to a foreground is: after responding to the operation instruction, the operating system disables the task management interface, and enables the application program corresponding to the icon (for example, when receiving a tap of a user on an icon of a commonly used function of the application program “Baidu Map”, the operating system disables the task management interface, and enables the application program “Baidu Map”). Because the commonly used function is executed the foregoing step, and the executing the commonly used function refers to enabling the functional interface of the commonly used function, after S380 ends, the terminal device displays the functional interface of the commonly used function (in the foregoing example, the terminal device displays the functional interface of the commonly used function “Frequent Destination”).

In FIG. 2, when the user taps the button of the first application program, the system first obtains “6-5” corresponding to the button from the storage area corresponding to “Baidu Application”, searches for a code segment corresponding to the index entry according to “6-5” corresponding to the button, and runs the foregoing code segment, so that the functional interface of “Frequent Destination” may be determined, that is, after the commonly used function is executed, the task management interface may be switched to the functional interface of “Frequent Destination”, and the currently running application program is “Baidu Application”.

Certainly, in practical application, after the operation instruction is responded to, the application program corresponding to the icon may be not switched to the foreground, and the commonly used function is directly executed on a background, that is, the system still stays in the task management interface, and executes the commonly used function on the background without a need of enabling the functional interface of the commonly used function; and after completing the execution of the commonly used function, the system may display prompt information to the user, where the prompt information may indicate that the commonly used function is successfully executed (for example, popping up a dialog box for prompting), or the system may directly execute the commonly used function without a need of prompting the user.

According to the method for enabling a task management interface provided by Embodiment 2 of the present invention, it is convenient for a user to quickly enable a function of an application program included in the task management interface, thereby improving user experience.

FIG. 4 is a flowchart of a method for enabling a task management interface according to Method Embodiment 3 of the present invention, and the method may be executed by an operating system of a terminal device. As shown in FIG. 4, the method specifically includes the following steps.

S410. Receive an instruction for enabling the task management interface.

Herein, the task management interface implements the task view function, and the task management interface generally displays an opened window or a running application program. The instruction for enabling the task management interface may be triggered by double-tapping a Home key on the terminal device by a user, or may be triggered in a manner such as tapping and holding a menu key on the terminal device by the user.

S420. In response to the instruction for enabling the task management interface, select at least one application program from a local opened window or running application program.

The local application program refers to an application program installed by the user on the terminal device. In another implementation manner of the present invention, the at least one application program may be selected from a local application program recorded in a browsing history of the user; and in still another implementation manner of the present invention, the at least one application program may be selected with reference to the foregoing two implementation manners, which is not limited in the present invention.

It may be understood that the local application program recorded in the browsing history of the user may be a running application program or an application program that is not running, and accordingly, the at least one application program selected according to the another implementation manner may be an opened window, a running application program, or an application program that is not running.

S430. Send a broadcast message to the at least one application program, where the broadcast message is used to trigger the at least one application program to return an entrance parameter of at least one function; and store the entrance parameter of the at least one function in a storage area corresponding to the at least one application program.

The function herein may be a shortcut function (also referred to as a commonly used function) that is of an application program and that is commonly used by the user, or may be another function provided by the application program. In this specification, the foregoing function is a commonly used function of the user. However, it should be noted that the foregoing commonly used function is provided by the application program, but not provided by the task management interface itself. The commonly used function may be set according to a setting instruction of the user, or may be set according to a frequency of using functions of the at least one application program by the user in a preset time period, or may be set by using the foregoing two methods, which is not limited in the present invention.

For example, if a local application program A provides a setting option of a commonly used function, a user may set the commonly used function of the application program A by using the foregoing setting option, for example, the user may preset “Frequented Destination” as a commonly used function of “Baidu Map”. In another implementation manner, an application program A may pre-collect a habit of using the application program A by a user, for example, a frequency of enabling, in a preset time period, functions provided by the application program A. In an example in which the application program A is “Baidu Map”, if frequencies of enabling, by the user in a preset time period, “Frequent Destination”, “Taxi”, and “Distance Measurement” provided by “Baidu Map” are respectively 56 times, 12 times, and 42 times, “Frequent Destination” may be set as a commonly used function.

An entrance parameter of the commonly used function may include: a name of the commonly used function and an index entry for indexing the commonly used function in the application program. The index entry is corresponding to a specific code segment, and when the specific code segment is executed, a functional interface of the commonly used function corresponding to the index entry is loaded. In a specific implementation manner, it is assumed that functions of an application program are obtained by division according to levels, where each function is corresponding to a unique flag bit, for example, a flag bit of a first function is “1”, a flag bit of a second function is “2”, . . . , and so on. Each function may include multiple sub-functions, and each sub-function is also corresponding to a unique flag bit, for example, a flag bit corresponding to a fifth sub-function of the first function is “1-5”. In this case, the index entry may be a unique flag bit corresponding to the foregoing function or sub-function.

Herein, a specific application scenario is merely used as an example for describing the index entry, which, however, is not limited in the present invention, and a person skilled in the art may set the foregoing index entry to another parameter.

For example, after one application program “Baidu Application” is selected, a broadcast message may be sent to “Baidu Application”. After receiving the foregoing broadcast message, “Baidu Application” returns entrance parameters “Frequent Destination” and “6-5” of a commonly used function of “Baidu Application” to the operating system, and the operating system stores the foregoing received entrance parameters in the storage area corresponding to “Baidu Application”. Herein, if multiple application programs are selected, a broadcast message is sent to the multiple application programs; and when any application program in the multiple application programs has more than one commonly used function, entrance parameters of the more than one commonly used function are returned to the operating system, and the operating system stores the entrance parameters of the more than one commonly used function in the storage area corresponding to “Baidu Application”.

After the entrance parameter of the at least one commonly used function of the foregoing application program is obtained from the storage area, an icon corresponding to the at least one commonly used function may be drawn according to the entrance parameter of the at least one commonly used function.

S440 to S460 are to the same as S360 to S380, and details are not repeatedly described herein.

According to the method for enabling a task management interface provided by Embodiment 3 of the present invention, it is convenient for a user to quickly enable a function of an application program included in the task management interface, thereby improving user experience.

FIG. 5 is a flowchart of a method for enabling a task management interface according to Method Embodiment 4 of the present invention, and the method may be executed by an operating system of a terminal device. As shown in FIG. 5, the method specifically includes the following steps.

S510. Receive an instruction for enabling the task management interface.

Herein, the task management interface implements the task view function, and the task management interface generally displays an opened window or a running application program. The instruction for enabling the task management interface may be triggered by double-tapping a Home key on the terminal device by a user, or may be triggered in a manner such as tapping and holding a menu key on the terminal device by the user.

S520. In response to the instruction for enabling the task management interface, select at least one application program from a local application program with reference to a current user state.

The current user state may be a current time of the user, or a current geographic location of the user, or a current human body characteristic parameter of the user such as a heart rate, a blood pressure, and an emotion.

Specifically, the operating system of the terminal device may pre-collect a habit of using the local application program by the user, that is, pre-collect a use frequency of using the local application program by the user in any one or more of the following cases: in a first case, a use frequency of using each application program in the local application program by the user in multiple preset time periods is collected; in a second case, a use frequency of using each application program in the local application program by the user when human body characteristic parameters are multiple thresholds is collected; in a third case, a use frequency of using each application program of the local application program by the user in multiple preset locations is collected.

For the foregoing pre-collected habit of using the local application program by the user, before the management interface is displayed, one or more types of information among a current time of the user, a current geographic location of the user, or a human body characteristic parameter of the user are first obtained. In an example in which only one type of the information (for example, the current time of the user) is obtained, the current time is compared with multiple preset time periods, and if the current time is within a preset time period, a most frequently used application program among all application programs used in the preset time period is selected as the at least one application program. For example, it is assumed that the obtained current time point is 7:30, and the time point is within an interval of the second time period (7:00-8:00) listed in Table 2. The use frequencies of using the application program A, the application program B, and the application program C in the second time period are respectively “4 times”, “30 times”, and “11 times”, that is, the use frequency of the application program B is the highest; therefore, the application program B is selected as the at least one application program.

The foregoing provides a description by using the example in which only one type of the information is obtained, and one application program is selected from the local application program with reference to the information. When multiple types of the information is obtained, a person skilled in the art can select the at least one application program from the local application program according to the method of the present invention, and displays the at least one application program on the task management interface, which is not limited in the present invention.

S530 to S560 are to the same as S430 to S460, and details are not repeatedly described herein.

According to the method for enabling a task management interface provided by Embodiment 4 of the present invention, it is convenient for a user to quickly enable a function of an application program included in the task management interface, thereby improving user experience.

In another embodiment of the present invention, the operating system of the terminal device may pre-collect a habit of using the local application program by the user, specifically, pre-collect a use frequency of using the local application program by the user in any one or more of the following cases: in a first case, a use frequency of using each application program in the local application program by the user in multiple preset time periods is collected; in a second case, a use frequency of using each application program in the local application program by the user when human body characteristic parameters are multiple thresholds is collected; in a third case, a use frequency of using each application program of the local application program by the user in multiple preset locations is collected.

For the foregoing pre-collected habit of using the local application program by the user, before the management interface is displayed, one or more types of information among a current time of the user, a current geographic location of the user, or a human body characteristic parameter of the user are first obtained. In an example in which only one type of the information (for example, the current time of the user) is obtained, the current time is compared with multiple preset time periods, and a most frequently used application program in all application programs used in a time period including the current time is selected as the at least one application program. A preview interface of the selected at least one application program is displayed on the task management interface.

When an operation instruction of the preview interface is received, switching the application program corresponding to the preview interface to a foreground for display.

The foregoing provides a description by using the example in which only one type of the information is obtained, and one application program is selected from the local application program with reference to the information. When multiple types of the information is obtained, a person skilled in the art can select the at least one application program from the local application program according to the method of the present invention, and displays the at least one application program on the task management interface, which is not limited in the present invention.

It should be noted that the selected at least one application program herein may be a running application program of the local application program, or may be an application program that is not running. When the selected at least one application program is a running application program, the operating system of the terminal device may further send a request message to the application program, where the request message is used to trigger the foregoing selected at least one application program to return information collected when the foregoing selected at least one application program runs on a background, so that the operating system of the terminal device displays the collected information on the task management interface. For example, when the selected application program is an opened window or a running application program “Health”, the foregoing collected information may include information such as a running time of a user, a quantity of steps, distance, or a heart rate of a user.

FIG. 6 is a flowchart of a method for enabling a task management interface according to Method Embodiment 5 of the present invention, and the method may be executed by an operating system of a terminal device. As shown in FIG. 6, the method specifically includes the following steps.

S610 to S620 are the same as S510 to S520, and details are not repeatedly described herein.

S630. Display the task management interface, where the task management interface includes a preview interface of the at least one application program.

In a specific implementation manner, the foregoing preview interface may be a scaled interface of a functional interface window of a commonly used function that is used by a user and of the application program. For example, when the application program is “Baidu Application”, the foregoing preview interface may be a scaled interface of a functional interface window of a commonly used function “Frequent Destination” that is used by the user and of “Baidu Application”.

It should be noted that the application program included on the foregoing task management interface may be an opened window, a running application program, or an application program that is not running.

S640. Receive an operation instruction for the preview interface of the application program.

Herein, the operation instruction may be but is not limited to tap operation triggering of the user on a touchinterface of the terminal device.

S650. In response to the operation instruction, switch the task management interface to the application program for execution.

It should be noted that the switching the task management interface to the application program is: after responding to the operation instruction, the operating system disables the task management interface, and enables the application program (for example, when receiving a tap of a user on a preview interface of “Baidu Map”, the operating system disables the task management interface, and enables the application program “Baidu Map”). Because the foregoing preview interface is a scaled interface of a functional interface window that is used by the user and of the application program, after S650 ends, the terminal device displays a functional interface of a commonly used function (in the foregoing example, the terminal device displays a functional interface of the commonly used function “Frequent Destination”).

Certainly, in practical application, after the operation instruction is responded to, the application program corresponding to the icon may be not switched to the foreground, and the commonly used function is directly executed on a background, that is, the system still stays in the task management interface, and executes the commonly used function on the background without a need of enabling the functional interface of the commonly used function; and after completing the execution of the commonly used function, the system may display prompt information to the user, where the prompt information may indicate that the commonly used function is successfully executed (for example, popping up a dialog box for prompting), or the system may directly execute the commonly used function without a need of prompting the user.

According to the method for enabling a task management interface provided in Embodiment 5 of the present invention, it is convenient for a user to quickly switch from the task management interface to a functional interface commonly used by the user, the functional interface herein is provided by an application program, and the application program is selected from a local application program with reference to a current user state, thereby improving user experience.

Apparatus Embodiment

FIG. 7 is a schematic diagram of an apparatus for enabling a task management interface according to an apparatus embodiment of the present invention. As shown in FIG. 7, the apparatus includes a receiving unit 701, a display unit 702, and a switch unit 703.

The receiving unit 701 is configured to receive an instruction for enabling the task management interface.

The display unit 702 is configured to: in response to the instruction for enabling the task management interface received by the receiving unit 701, display the task management interface, where the task management interface includes a preview interface of at least one application program and an icon corresponding to at least one function of the application program.

The receiving unit 701 is further configured to receive an operation instruction for the icon.

The switch unit 703 is configured to: in response to the operation instruction received by the receiving unit 701, switch the application program corresponding to the icon to a foreground, and execute the function.

The function is a commonly used function of a user, where the commonly used function is set according to a setting instruction of the user; and\or

the commonly used function is set according to a frequency of using functions of the at least one application program by the user in a preset time period.

The switch unit 703 is specifically configured to: obtain the entrance parameter of the at least one function corresponding to the icon from a storage area; determine a functional interface of the function according to the entrance parameter of the at least one function corresponding to the icon; and display the functional interface on the foreground.

Optionally, the apparatus further includes: a first selection unit 704, configured to select the at least one application program from a local opened window or running application program.

Optionally, the apparatus further includes: a storage unit 705;

the receiving unit 701 is configured to receive an entrance parameter that is of the at least one function and that is sent, upon an exit of the local application program, by the local application program; and

the storage unit 705 is configured to store the entrance parameter of the at least one function received by the receiving unit 701 in a storage area corresponding to the local application program.

Optionally, the apparatus further includes: a sending unit 706, configured to send a broadcast message to the at least one application program, where the broadcast message is used to trigger the at least one application program to return the entrance parameter of the at least one function; and

store the entrance parameter of the at least one function in the storage area corresponding to the at least one application program.

The icon corresponding to the at least one function of the application program is drawn according to the entrance parameter of the at least one function.

Optionally, the apparatus further includes: a second selection unit 707, configured to select the at least one application program from a local application program with reference to a current user state.

The apparatus provided in Embodiment 5 of the application executes the method provided in Embodiment 1 of the application; therefore, a specific working process of the apparatus provided in the application is not repeatedly described herein.

According to the apparatus for enabling a task management interface provided in Embodiment 5 of the present invention, a receiving unit 701 receives an instruction for enabling the task management interface; a display unit 702 responds to the instruction for enabling the task management interface and displays the task management interface, where the task management interface includes a preview interface of at least one application program and an icon corresponding to at least one function of the application program; the receiving unit 701 receives an operation instruction for the icon; and a switch unit 703 responds to the operation instruction, switches the application program corresponding to the icon to a foreground, and executes the function. Therefore, it is convenient for a user to quickly enable a function of an application program included in the task management interface, thereby improving user experience.

Device Embodiment

FIG. 8 is a schematic diagram of a device for enabling a task management interface according to a device embodiment of the present invention. As shown in FIG. 8, the device 800 includes: a processor 802, a memory 804, a communications interface 806, and a bus 808. The processor 802, the memory 804, and the communications interface 806 implement mutual communication connections by using the bus 808.

The processor 802 may use a general-purpose central processing unit (Central Processing Unit, CPU), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is configured to execute a related program, so as to implement technical solutions provided in the foregoing method embodiments of the present invention.

The processor 802 may further include a parsing module, an invoking module, a collection module, and the like. The parsing module parses an operation instruction inputted by a user; the invoking module is configured to invoke an application program in an operating system; and the collection module is configured to collect preference or a habitual operation of the user during a process of using a local application program by the user.

The memory 804 may be a read-only memory (Read Only Memory, ROM), a static storage device, a dynamic storage device, or a random access memory (Random Access Memory, RAM). The memory 804 may store an operating system and another application program. When the technical solution provided in this embodiment of the present invention is implemented by using software or firmware, program code used to implement any optional technical solution provided in the foregoing method embodiment of the present invention is stored in the memory 804, and is executed by the processor 802.

The communications interface 806 is configured to communicate with another switch or control server.

The bus 808 may include a channel through which information is transmitted between parts (such as the processor 802, the memory 804, and the communications interface 806) of the device 800.

By using the device for enabling a task management interface provided by the device embodiment of the present invention, it is convenient for a user to quickly enable a function of an application program included in the task management interface, thereby improving user experience.

It should be noted that embodiments of the present invention provides a description by using the task management interface as an example, which, however, is not limited, and the embodiments of the present invention is be further applicable to another user interface in addition to the task management interface, such as a lock interface, a standby interface, a notification center interface, and a control center interface that are different from the task management interface only in a triggering manner, for example, the lock interface may be triggered by pressing down a power button on a terminal device, the notification center interface may be triggered by performing an up-to-down sliding operation on a touchinterface of the terminal device by the user, and the control center interface may be triggered by performing a down-to-up sliding operation on the touchinterface of the terminal device by the user.

A person skilled in the art may be further aware that, in combination with the examples described in the embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware, computer software, or a combination thereof. To clearly describe the interchangeability between the hardware and the software, the foregoing has generally described compositions and steps of each example according to functions. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the present invention.

Steps of methods or algorithms described in the embodiments disclosed in this specification may be implemented by hardware, a software module executed by a processor, or a combination thereof. The software module may reside in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

In the foregoing specific implementation manners, the objective, technical solutions, and benefits of the present invention are further described in detail. It should be understood that the foregoing descriptions are merely specific implementation manners of the present invention, but are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the present invention should fall within the protection scope of the present invention. 

1. A method for displaying a task management interface, comprising: receiving an operation of double-tapping a Home key; selecting at least one application program from installed application programs according to a habit of using an application program by a user in response to the operation of double-tapping the Home key; and displaying the task management interface, and wherein the task management interface comprises information about the selected at least one application program.
 2. The method according to claim 1, wherein the information about the selected at least one application program comprises an icon corresponding to the at least one application program and a preview interface of the at least one application program.
 3. The method according to claim 1, wherein selecting the at least one application program from the installed application programs comprises selecting the at least one application program from the installed application programs according to use of the application program by the user in daily life.
 4. The method according to claim 3, wherein selecting the at least one application program from the installed application programs comprises selecting the at least one application program from the installed application programs according to a frequency of using the application program by the user in different time periods.
 5. The method according to claim 3, wherein selecting the at least one application program from the installed application programs according to the use of the application program by the user in daily life is comprises selecting the at least one application program from the installed application programs according to a frequency of using the application program by the user when human body characteristic parameters of the user comprise different thresholds.
 6. The method according to claim 3, wherein selecting the at least one application program from the installed application programs according to the use of the application program by the user in daily life comprises selecting the at least one application program from the installed application programs according to a frequency of using the application program by the user in different locations.
 7. The method according to claim 1, wherein after displaying the task management interface, the method further comprises: receiving an operation instruction for the information about the selected at least one application program; switching the at least one application program to a foreground in response to the operation instruction; and running the at least one application program. 8.-9. (canceled)
 10. A method for running an application program, comprising: receiving a first operation instruction; displaying a user interface in response to the first operation instruction, wherein the user interface comprises an icon of at least one application program, and wherein the application program is selected from installed application programs according to a habit of using the application program by a user; receiving a second operation instruction for an icon of the application program; switching the application program to a foreground in response to the second operation instruction; and running the application program.
 11. The method according to claim 10, wherein the application program is selected from the installed application programs according to use of the application program by the user in daily life.
 12. The method according to claim 10, wherein the application program is selected from the installed application programs according to a frequency of using the application program by the user in different time periods.
 13. The method according to claim 10, wherein the application program is selected from the installed application programs according to a frequency of using the application program by the user when human body characteristic parameters of the user comprise different thresholds.
 14. The method according to claim 10, wherein the application program is selected from the installed application programs according to a frequency of using the application program by the user in different locations. 15.-31. (canceled)
 32. An apparatus for running an application program, comprising: a memory configured to store instructions; and a processor coupled to the memory, wherein the instructions cause the processor to be configured to: receive an operation of double-tapping a Home key; select at least one application program from installed application programs according to a habit of using an application program by a user in response to the operation of double-tapping the Home key; and display a task management interface, and wherein the task management interface comprises information about the selected at least one application program.
 33. The apparatus of claim 32, wherein the information about the at least one application program comprises an icon corresponding to the at least one application program or a preview interface of the at least one application program.
 34. The apparatus of claim 32, wherein when selecting the at least one application program from the installed application programs, the instructions further cause the processor to be configured to select the at least one application program from the installed application programs according to use of the application program by the user in daily life.
 35. The apparatus of claim 34, wherein when selecting the at least one application program, the instructions further cause the processor to be configured to select the at least one application program from the installed application programs according to a frequency of using the application program by the user in different time periods.
 36. The apparatus of claim 34, wherein when selecting the at least one application program, the instructions further cause the processor to be configured to select the at least one application program from the installed application programs according to a frequency of using the application program by the user when human body characteristic parameters of the user comprise different thresholds.
 37. The apparatus of claim 34, wherein when selecting the at least one application program, the instructions further cause the processor to be configured to select the at least one application program from the installed application programs according to a frequency of using the application program by the user in different locations.
 38. The apparatus of claim 32, wherein the instructions further cause the processor to be configured to: receive an operation instruction for the information about the selected at least one application program after displaying the task management interface; switch the at least one application program to a foreground in response to the operation instruction; and run the at least one application program.
 39. The method according to claim 1, wherein the information about the at least one application program comprises an icon corresponding to the at least one application program or a preview interface of the at least one application program. 